gamma beta function relationship